import request from '@/utils/request'

export const addUserApi = (user) => request.post('/user/register', user)
export const queryInfoApi = (id) => request.get(`/user/${id}`)
export const updateUserApi = (user) => request.put('/user', user)

export const deleteUserApi = (id) => request.delete(`/user/${id}`)


export const queryAllUser = (pageNo,pageSize) => request.get(`/user/page/${pageNo}/${pageSize}`)
